package com.ruoyi.passenger.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerCarOrderMapper;
import com.ruoyi.passenger.domain.TbPassengerCarOrder;
import com.ruoyi.passenger.service.ITbPassengerCarOrderService;

/**
 * 用户充值业务Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class TbPassengerCarOrderServiceImpl implements ITbPassengerCarOrderService 
{
    @Autowired
    private TbPassengerCarOrderMapper tbPassengerCarOrderMapper;

    /**
     * 查询用户充值业务
     * 
     * @param passengerId 用户充值业务主键
     * @return 用户充值业务
     */
    @Override
    public TbPassengerCarOrder selectTbPassengerCarOrderByPassengerId(Long passengerId)
    {
        return tbPassengerCarOrderMapper.selectTbPassengerCarOrderByPassengerId(passengerId);
    }

    /**
     * 查询用户充值业务列表
     * 
     * @param tbPassengerCarOrder 用户充值业务
     * @return 用户充值业务
     */
    @Override
    public List<TbPassengerCarOrder> selectTbPassengerCarOrderList(TbPassengerCarOrder tbPassengerCarOrder)
    {
        return tbPassengerCarOrderMapper.selectTbPassengerCarOrderList(tbPassengerCarOrder);
    }

    /**
     * 新增用户充值业务
     * 
     * @param tbPassengerCarOrder 用户充值业务
     * @return 结果
     */
    @Override
    public int insertTbPassengerCarOrder(TbPassengerCarOrder tbPassengerCarOrder)
    {
        return tbPassengerCarOrderMapper.insertTbPassengerCarOrder(tbPassengerCarOrder);
    }

    /**
     * 修改用户充值业务
     * 
     * @param tbPassengerCarOrder 用户充值业务
     * @return 结果
     */
    @Override
    public int updateTbPassengerCarOrder(TbPassengerCarOrder tbPassengerCarOrder)
    {
        return tbPassengerCarOrderMapper.updateTbPassengerCarOrder(tbPassengerCarOrder);
    }

    /**
     * 批量删除用户充值业务
     * 
     * @param passengerIds 需要删除的用户充值业务主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerCarOrderByPassengerIds(Long[] passengerIds)
    {
        return tbPassengerCarOrderMapper.deleteTbPassengerCarOrderByPassengerIds(passengerIds);
    }

    /**
     * 删除用户充值业务信息
     * 
     * @param passengerId 用户充值业务主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerCarOrderByPassengerId(Long passengerId)
    {
        return tbPassengerCarOrderMapper.deleteTbPassengerCarOrderByPassengerId(passengerId);
    }
}
